package com.zhaorui.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName GZ_TF_MM0
 */
@TableName(value ="GZ_TF_MM0")
@Data
public class GzTfMm0 implements Serializable {
    /**
     * 
     */
    @TableId
    private String mmNo;

    /**
     * 
     */
    private Date mmDd;

    /**
     * 
     */
    private String moNo;

    /**
     * 
     */
    private String soNo;

    /**
     * 
     */
    private String batNo;

    /**
     * 
     */
    private String prdNo;

    /**
     * 
     */
    private String prdName;

    /**
     * 
     */
    private String unit;

    /**
     * 
     */
    private String wh;

    /**
     * 
     */
    private Integer estItm;

    /**
     * 
     */
    private BigDecimal qty;

    /**
     * 
     */
    private Integer del;

    /**
     * 
     */
    private String rem2;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GzTfMm0 other = (GzTfMm0) that;
        return (this.getMmNo() == null ? other.getMmNo() == null : this.getMmNo().equals(other.getMmNo()))
            && (this.getMmDd() == null ? other.getMmDd() == null : this.getMmDd().equals(other.getMmDd()))
            && (this.getMoNo() == null ? other.getMoNo() == null : this.getMoNo().equals(other.getMoNo()))
            && (this.getSoNo() == null ? other.getSoNo() == null : this.getSoNo().equals(other.getSoNo()))
            && (this.getBatNo() == null ? other.getBatNo() == null : this.getBatNo().equals(other.getBatNo()))
            && (this.getPrdNo() == null ? other.getPrdNo() == null : this.getPrdNo().equals(other.getPrdNo()))
            && (this.getPrdName() == null ? other.getPrdName() == null : this.getPrdName().equals(other.getPrdName()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getWh() == null ? other.getWh() == null : this.getWh().equals(other.getWh()))
            && (this.getEstItm() == null ? other.getEstItm() == null : this.getEstItm().equals(other.getEstItm()))
            && (this.getQty() == null ? other.getQty() == null : this.getQty().equals(other.getQty()))
            && (this.getDel() == null ? other.getDel() == null : this.getDel().equals(other.getDel()))
            && (this.getRem2() == null ? other.getRem2() == null : this.getRem2().equals(other.getRem2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMmNo() == null) ? 0 : getMmNo().hashCode());
        result = prime * result + ((getMmDd() == null) ? 0 : getMmDd().hashCode());
        result = prime * result + ((getMoNo() == null) ? 0 : getMoNo().hashCode());
        result = prime * result + ((getSoNo() == null) ? 0 : getSoNo().hashCode());
        result = prime * result + ((getBatNo() == null) ? 0 : getBatNo().hashCode());
        result = prime * result + ((getPrdNo() == null) ? 0 : getPrdNo().hashCode());
        result = prime * result + ((getPrdName() == null) ? 0 : getPrdName().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getWh() == null) ? 0 : getWh().hashCode());
        result = prime * result + ((getEstItm() == null) ? 0 : getEstItm().hashCode());
        result = prime * result + ((getQty() == null) ? 0 : getQty().hashCode());
        result = prime * result + ((getDel() == null) ? 0 : getDel().hashCode());
        result = prime * result + ((getRem2() == null) ? 0 : getRem2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mmNo=").append(mmNo);
        sb.append(", mmDd=").append(mmDd);
        sb.append(", moNo=").append(moNo);
        sb.append(", soNo=").append(soNo);
        sb.append(", batNo=").append(batNo);
        sb.append(", prdNo=").append(prdNo);
        sb.append(", prdName=").append(prdName);
        sb.append(", unit=").append(unit);
        sb.append(", wh=").append(wh);
        sb.append(", estItm=").append(estItm);
        sb.append(", qty=").append(qty);
        sb.append(", del=").append(del);
        sb.append(", rem2=").append(rem2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}